/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package at.fhj.itm.generator.postgres;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.velocity.app.VelocityEngine;

/**
 *
 * @author gerhard
 */
public class PostgresVelocityUtil extends VelocityUtil{

    private static final List<String> POSTGRES_TEMPLATES; 
    static {
      POSTGRES_TEMPLATES = new ArrayList<String>();
      POSTGRES_TEMPLATES.add("./template/postgres-template-main.vsl");  
    }


     public static String callVelocityMacro(VelocityEngine engine, String macroName,
             Object...params) throws IOException
    {
         return PostgresVelocityUtil.callVelocityMacro(engine, POSTGRES_TEMPLATES, macroName, params).trim();
    }

}
